home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1451 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.1 KB

  1. Path: rap.SanDiegoCA.ATTGIS.COM!es013!jbc
  2. From: jbc@ElSegundoCA.ATTGIS.COM (Jim Chapman)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: C++ questions
  5. Date: 11 Jan 1996 01:45:01 GMT
  6. Organization: AT&T Global Information Solutions
  7. Distribution: world
  8. Message-ID: <4d1q2t$kj7@rap.SanDiegoCA.ATTGIS.COM>
  9. References: <4d0um5$9jf@cisu2.jsc.nasa.gov>
  10. Reply-To: jbc@ElSegundoCA.ATTGIS.COM
  11. NNTP-Posting-Host: es013.elsegundoca.attgis.com
  12.  
  13. In article 9jf@cisu2.jsc.nasa.gov, Norman LaFave <lafave@ial4.jsc.nasa.gov> () writes:
  14. > Hi all,
  15. > I wanted to ask the gurus here some questions:
  16. > 1.) How do you handle a variable number of arguements to a function 
  17. > since the elipsis of C does not work.
  18. Not true. Elipsis is valid in a C++ function prototype.  It's less frequently
  19. used than in C because C++ supports default arguments.
  20.  
  21. > 2.) Can an object be instantiated with a variable containing a value 
  22. > instead of explicitely with a number.
  23. For non-static objects, yes.
  24.  
  25. > 3.) Can the type a template is instantiated with be queried (I am trying 
  26. > to write an exception which limits the data types the template can be 
  27. > instantiated with).
  28. There are techniques for querying querying template parameter types.
  29.  
  30. > 4.) How often have you found that composition is a better choice than 
  31. > inheritance (I find myself using it 75% of the time).
  32. Sounds about right.
  33.  
  34. > 5.) Can C++ be made multithreaded.
  35. You betcha.  The issues are the same as with C.
  36.  
  37. > 6.) Can C++ be made portable through some library calls for instance.
  38. You can certainly write portable (or non-portable) C++ code.  For code
  39. that must be ported immediately, stay away from features that are not
  40. as widely implemented yet (e.g. RTTI). To plan for portability long-
  41. term, keep an eye on the draft standard.
  42.  
  43. > 7.) How many of you see Java as a real replacement for C++ (not just for 
  44. > web applications, but for all applications.
  45. Not me.
  46.  
  47.  
  48.  
  49. ---
  50.  ====  AT&T        | Jim Chapman             |
  51. =--=== Global      | Multimedia Projects     | jbc@ElSegundoCA.ATTGIS.COM
  52. =--=== Information | 100 N. Sepulveda Blvd.  |   Voice: (310) 524-6747          
  53.  ====  Solutions   | El Segundo, CA 90245    |   FAX:   (310) 524-5515
  54.  
  55.